package org.example.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

/**
 * 任务开始事件：新增流程操作记录：待审批记录
 *
 * @author wanghuidong
 * 时间： 2024/6/28 10:35
 */
public class TaskCreateListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.println();
        System.out.printf("task create,taskId=%s,userId=%s", delegateTask.getId(), delegateTask.getAssignee());
        System.out.println();

    }
}
